package com.yzkj.cpjxc.business.domain;

import java.text.SimpleDateFormat;

import org.apache.commons.lang3.StringUtils;
import org.apache.ibatis.type.Alias;

/**
 * 凭证管理展示VO
 */
@Alias("PingZhengShowVo")
public class PingZhengShowVo extends PingZheng {

	private static final long serialVersionUID = 6346810950471664806L;
	
	/**
	 * 摘要记录
	 */
	private String zyJl;

	/**
	 * 借方金额
	 */
	private Double jfje;

	/**
	 * 贷方金额
	 */
	private Double dfje;
	
	/**
	 * 余额方向 1:借  -1：贷
	 */
	private String yueFx;
	
	/**
	 * 余额
	 */
	private Double yuE;
	
	
	public String getZyJl() {
		return zyJl;
	}

	
	public void setZyJl(String zyJl) {
		this.zyJl = zyJl;
	}

	
	public Double getJfje() {
		return jfje;
	}

	
	public void setJfje(Double jfje) {
		this.jfje = jfje;
	}

	
	public Double getDfje() {
		return dfje;
	}

	
	public void setDfje(Double dfje) {
		this.dfje = dfje;
	}

	
	public String getYueFx() {
		return yueFx;
	}

	
	public void setYueFx(String yueFx) {
		this.yueFx = yueFx;
	}

	
	public Double getYuE() {
		return yuE;
	}

	
	public void setYuE(Double yuE) {
		this.yuE = yuE;
	}

	public String getPzDateStr() {
		
		if(this.getPzDate()!=null){
			SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
			return format.format(this.getPzDate());
		}
		return "";
	}
	
	public String getPzhStr() {
		if(this.getPzh()!=null){
			return StringUtils.leftPad(this.getPzh()+"",4, "0");
		}
		return "";
	}

}

